package cn.lkx.eduservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@EnableDiscoveryClient //nacos注册
@EnableFeignClients //服务调用 （再写个接口，已接口化请求调用）
//添加创建启动类
@SpringBootApplication
//设置包扫描规则，这样才能扫描到servicebase,commonutils包下的的类,不然默认只扫cn.lkx.eduservice下的
@ComponentScan(basePackages = {"cn.lkx"})
public class EduApplication {
    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class,args);
    }
}
